<?php

$str = "fdg's'df's'df";

var_dump(addslashes($str));


$str = "dsfsfsdf,dsf,sdf,sd";

$arr = explode(',',$str);

// echo implode("*",$arr);

$str =  "<a herf='http://www.baidu.com'>百度一下</a>";
// echo htmlspecialchars_decode(htmlspecialchars($str));

$str = "xuebingsi.jpg";

// var_dump(ltrim($str));
// var_dump(rtrim($str,'.jpg'));
// var_dump(trim($str));

// var_dump(md5('xbs'.'123456'.'xbs'));
// 
var_dump(sha1('123457'));

$str = "dfsdfsHHHHd";

var_dump(str_ireplace('h', 'x', $str));

var_dump(str_repeat('name',100));

$str = <<<xbs
<td valign="middle" align="left" width="*" height="50" style="font-family: verdana, arial, sans-serif; font-size: 12px; color: #eeeeee;">
                            本站针对md5、sha1等全球通用公开的加密算法进行反向查询，通过穷举字符组合的方式，创建了明文密文对应查询数据库，创建的记录约90万亿条，占用硬盘超过500TB，查询成功率95%以上，很多复杂密文只有本站才可查询。已稳定运行十余年，国内外享有盛誉。
                            <br />

                        </td>

xbs;
var_dump(strip_tags($str));


$str = "学并思";

// var_dump(strlen($str));

$str  ="dfgdgdfgdsgfdg";
$str = "学dfgfdg并dfgdfg思";
var_dump(substr($str,6,3));
var_dump(mb_substr($str,1,1,'utf8'));
var_dump(strtoupper($str));
var_dump(strtolower($str));
$str = "name atr fsdf sdfsdf";
var_dump(ucfirst($str));
var_dump(ucwords($str));
// var_dump(stripos($str,'g',2+1));